package com.company.责任链模式2;

public class Test {
    static void test(Handler handler,Request request){
        handler.handle(request);
    }

    public static void main(String[] args) {
        Handler handler = new TeamLeader(new DepLeader(new Leader(null)));
        test(handler,new Request(5));
    }
}
